package com.paziy.jan.university.persons;

import java.util.ArrayList;
import java.util.Date;


public class Passport {

    private final Name name;
    private final String series;
    private final String number;
    private final Date birthday;
    private final String issued;
    private final Date issuedDate;
    private String residence;
    private ArrayList<String> residences = new ArrayList<String>();

    public Passport(Name name, String series, String number, Date birthday,
                    String issued, Date issuedDate, String residence) {

        this.name = name;
        this.series = series; //todo check correctness of series
        this.number = number; //todo check correctness of number
        this.birthday = birthday;
        this.issued = issued;
        this.issuedDate = issuedDate;
        this.residence = residence;

        residences.add(residence);

    }
}
